/**
 * 存储合作推广的相关参数
 */
import {
	defineStore
} from 'pinia';


export default defineStore('cooperateStore', {
	state: () => {
		return {
			price: '',
			bonus: '',
			name: '',
		}
	},

	actions: {
		setPrice(price) {
			this.price = price
		},
		setBonus(bonus) {
			this.bonus = bonus
		},
		setName(name) {
			this.name = name
		},
		clearCooperateStore(){
			this.price=''
			this.bonus=''
			this.name=''
		}
	},

	getters: {
		getPrice: (state) => state.price,
		getBonus: (state) => state.bonus,
		getName: (state) => state.name,
	}


});